package com.cskaoyan.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@AllArgsConstructor
@NoArgsConstructor
@Data
public class SystemAdminVO<T> {
    private long total;
    private List<T> items;

    public static <T> SystemAdminVO data(List<T> items,long total){
        SystemAdminVO baseData = new SystemAdminVO();
        baseData.setItems(items);
        baseData.setTotal(total);
        return baseData;
    }
}
